{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Xiongkai-teamintro</title>
    <link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}">
    <script src="{% static 'bootstrap/js/jquery-3.1.1.min.js' %}"></script>
    <script src="{% static 'bootstrap/js/bootstrap.min.js' %}"></script>
    <script src="{% static 'layer/layer.js' %}"></script>
    <link rel="stylesheet" href="{% static 'teamstyle.css' %}">
</head>
<body>
    <div id="team-detail">
        {% if code == 0 %}
            <h2 style="color: red;">{{ data }}</h2>
        {% else %}
            <div class="x2-title text-center">{{ data.title }}</div>
            <div class="team-deimg">
            {% for img_url in data.productImgs.all %}
                <img src="{{ img_url.photo.url }}" alt="球队图片"/>
            {% endfor %}
            </div>
            <div class="team-detitle">
                球队介绍
            </div>
            <div class="x-padding2">{{ data.desc }}</div>
            <div class="team-detitle">
                球队身价（亿欧）
            </div>
            <div class="x-padding2">{{ data.price }}</div>
        {% endif %}
    </div>
<script src="{% static 'js/style.js' %}"></script>


</body>
</html>